package com.vcredit.creditcat.manager;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.vcredit.creditcat.api.ICustRecommendCardManager;
import com.vcredit.creditcat.model.CustRecommendCard;
import com.vcredit.creditcat.service.CustRecommendCardService;

@Service(protocol = { "protocol1" }, version = "1.0")
public class CustRecommendCardManager implements ICustRecommendCardManager{

	@Autowired
	private CustRecommendCardService custRecommendCardService;
	
	@Override
	public int getSuccessCardApplyCount(Long custId) {		
		return custRecommendCardService.countApplyRecord(custId);
	}

	@Override
	public List<CustRecommendCard> findApplyRecordByCustId(Long custId) {		
		return custRecommendCardService.findApplyRecordByCustId(custId);
	}

}
